package com.xw.childhealth.service.impl;

import com.xw.childhealth.dao.Icd10CodeDao;
import com.xw.childhealth.entity.Icd10Code;
import com.xw.childhealth.service.Icd10CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-21 09:37
 * @Version: 1.0
 */
@Service
public class Icd10CodeServiceImpl implements Icd10CodeService {

    @Autowired
    private Icd10CodeDao icd10CodeDao;

    @Override
    public List<Icd10Code> findByParentIdEquals(Integer id) {
        return icd10CodeDao.findByParentIdEquals(id);
    }

    @Override
    public void delRecord(Integer id) {
        icd10CodeDao.deleteById(id);
    }

    @Override
    public Icd10Code findByIdEquals(Integer id) {
        return icd10CodeDao.findByIdEquals(id);
    }

    @Override
    public Icd10Code save(Icd10Code obj) {
        return icd10CodeDao.save(obj);
    }
}
